package com.interview.one.model;

import javax.persistence.*;
import lombok.Data;

import java.util.List;

@Data
@Table(name = "goods_info")
public class GoodsInfo {
    @Id
    private Integer id;

    @Column(name = "category_id")
    private Integer categoryId;

    @Column(name = "goods_desc")
    private String goodsDesc;

    @Column(name = "goods_default_icon")
    private String goodsDefaultIcon;

    @Column(name = "goods_default_price")
    private String goodsDefaultPrice;

    @Column(name = "goods_detail_one")
    private String goodsDetailOne;

    @Column(name = "goods_detail_two")
    private String goodsDetailTwo;

    @Column(name = "goods_sales_count")
    private Integer goodsSalesCount;

    @Column(name = "goods_stock_count")
    private Integer goodsStockCount;

    @Column(name = "goods_code")
    private String goodsCode;

    @Column(name = "goods_default_sku")
    private String goodsDefaultSku;

    @Column(name = "goods_banner")
    private String goodsBanner;

    private Integer maxPage;

    private List<GoodsSku> goodsSku;
}